package com.my.consumer.client;

import com.my.common.entity.user.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhaodongchao
 * @date 2020/3/14 17:36
 **/
@FeignClient(name = "bcloud-user" , path = "/user")
public interface UserClient {

    @GetMapping("/{id}")
    SysUser findUser(@PathVariable("id") String id);
}
